#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main() 
{
    int n1 = 0, n2 = 0;
    scanf("%d %d", &n1, &n2);
    int count = 0;
    for (int i = 0; i < 32; i++)
    {
        if ((n1 >> i & 1) != (n2 >> i & 1))
        {
            count++;
        }
    }
    printf("%d", count);
    return 0;
}